<%--
  Created by IntelliJ IDEA.
  User: xiaoding
  Date: 2021/1/16
  Time: 19:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录界面</title>
    <link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/Style.css">
    <link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/login.css"/>
    <script src="bootstrap-3.3.7-dist/js/JQuery.js" type="text/javascript" charset="utf-8"></script>
    <script src="bootstrap-3.3.7-dist/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
</head>
<body background="images/bg.jpg">
<h1>欢迎登录图书管理系统</h1>
<div class="login">
    <form class="form-horizontal" method="post" action="LoginServlet?flag=login">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
                <input required="required" type="text" class="form-control" name="name" id="name" placeholder="请输入用户名">
            </div>
        </div>
        <div class="form-group">
            <label for="pws" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
                <input required="required" type="password" class="form-control" name="pws" id="pws" placeholder="请输入密码">
            </div>
        </div>
        <div class="form-group">
            <label for="yzm" class="col-sm-2 control-label">验证码</label>
            <div class="col-sm-10">
                <input required="required" type="text" class="form-control" name="yzm" id="yzm" placeholder="请输入验证码">
                <img src="drawImage" onclick="this.src='drawImage?'+Math.random()"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">登录</button>
                <a href="reg.jsp">注册</a>
            </div>
        </div>
    </form>
</div>

</body>
</html>
